from django.urls import path
from . import views

app_name = 'blog'
urlpatterns = [
    # ex: /blog/
    path('', views.IndexView.as_view(), name='index'),
    # ex: /blog/5/
    path('<int:pk>/', views.DetailView.as_view(), name='detail'),
    # ex: /blog/5/results
    path('<int:pk>/results', views.ResultsView.as_view(), name='results'),
    # ex: /blog/5/vote
    path('<int:pk>/vote', views.vote, name='vote')

]
